function desiredOutput = solveInput( input )
    global activationFunc;

    if activationFunc == 0
        desiredOutput = -1;
    elseif activationFunc == 1;
        desiredOutput = 0;
    end
    
    consecutive = 0;
    for k=1:size(input,1)
        if input(k) == 1
           consecutive = consecutive + 1;
        else
           consecutive = 0;
        end
        
        if consecutive == 3
            desiredOutput = 1;
            break;
        end
    end

end

